package service.impl;

import bean.UserInfo;
import dao.IUserInfoDao;
import dao.impl.IUserInfoDaoImpl;
import service.IUserInfoService;

import java.util.List;

public class IUserInfoServiceImpl implements IUserInfoService {



    IUserInfoDao userInfoDao = new IUserInfoDaoImpl();
    @Override
    public List<UserInfo> getUserInfo() throws Exception{
        return userInfoDao.getUserInfo();
    }

    @Override
    public boolean insertUserInfo(UserInfo userInfo) throws Exception{
        return userInfoDao.insertUserInfo(userInfo);
    }

    @Override
    public boolean updateUserInfo(UserInfo userInfo) throws Exception{
        return userInfoDao.updateUserInfo(userInfo);
    }

    @Override
    public boolean deleteUserInfo(int id) throws Exception{
        return userInfoDao.deleteUserInfo(id);
    }
}
